import VueRouter from 'vue-router'

import HomeContainer from './src/components/tabbar/HomeContainer.vue'
import HomeMember from './src/components/tabbar/HomeMember.vue'
import HomeShopCar from './src/components/tabbar/HomeShopCar.vue'
import HomeSearch from './src/components/tabbar/HomeSearch.vue'
import NewsList from './src/components/news/NewsList.vue'
import NewsInfo from './src/components/news/NewsInfo.vue'
import PhotoList from './src/components/photos/PhotoList.vue'
import PhotoInfo from './src/components/photos/PhotoInfo.vue'
import GoodsList from './src/components/goods/GoodsList.vue'
import GoodsInfo from './src/components/goods/GoodsInfo.vue'
import GoodsDesc from './src/components/goods/GoodsDesc.vue'
import GoodsComment from './src/components/goods/GoodsComment.vue'


var router = new VueRouter({
    routes:[
        {path:'/home',component:HomeContainer},
        {path:'./member',component:HomeMember},
        {path:'./shopcar',component:HomeShopCar},
        {path:'./search',component:HomeSearch},
        {path:'./home/newsList',component:NewsList},
        {path:'./home/newsInfo/:id',component:NewsInfo},
        {path:'/home/PhotoList',component:PhotoList},
        {path:'/home/photoInfo/:id',component:PhotoInfo},
        {path:'./home/goodslist',component:GoodsList},
        {path:'./home/goodsinfo/:id',component:GoodsInfo},
        {path:'./home/goodsdesc/:id',component:GoodsDesc,name:'goodsdesc'},
        {path:'./home/goodscomment/:id',component:GoodsComment,name:'goodscomment'},

    
    
  
    ],
    linkActiveClass:'mui-active',
   
})

export default router
